import fleet_management.Admin

class BootStrap {

	def init = { servletContext ->
		def masterUser=Admin.findByUserName("admin")
		if(!masterUser){
			masterUser=new Admin(userName:'admin',passWord:'admin',region:'Master Admin',name:'masterUser',phoneNo:'1234',emailAddress:'abc@gmail.com',address:'ktm')
			if (!masterUser.save(flush:true)){
			}
		}
	}
	def destroy = {
	}
}
